<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-09-06 14:26:40
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-09 11:32:34
-->
<script lang="ts" setup>
import useStore from "@/store";
import { useLazyData } from "@/utils/hooks";
const { home } = useStore();
const target = useLazyData(home.getBannerList);
</script>
<template>
  <div class="home-banner" ref="target">
    轮播图
    <XtxCarousel :slides="home.bannerList" autoPlay :duration="2000"></XtxCarousel>
  </div>
</template>

<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
}
</style>
